package com.wwz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwz.pojo.Charge;
import com.wwz.pojo.Device;
import com.wwz.pojo.query.DeviceQuery;

/**
 * 设备接口
 * @date 2022/03/26 15:11:31
 */
public interface IDeviceService extends IService<Device> {

    /**
     * 分页查询
     * @param query
     * @return
     */
    IPage<Device> toPage(DeviceQuery query);

    /**
     * 添加或修改
     * @param device
     */
    void addOrUpdate(Device device);
}
